package com.itheima.entity;

import jdk.nashorn.internal.ir.IfNode;
import org.springframework.stereotype.Component;

import java.io.File;
import java.io.IOException;

@Component
public class Account {
    public Account(Integer id, String name, double money) {
        this.id = id;
        this.name = name;
        this.money = money;
    }

    public Account() {
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", money=" + money +
                '}';
    }

    private Integer id;
    private String name;
    private double money;

		//此处省略set和get方法


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public static void main(String[] args) throws IOException {
        File file = new File("\\Device\\null");
        if (file.exists()){
            System.out.println("村阿紫");
        }else{
            file.createNewFile();
        }
    }
}